﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XNADota.UI;
using XNADota.ContentPipeline.Data;
using Microsoft.Xna.Framework;
using XNADota.Input;

namespace XNADota.GamePlay
{
    public class ControlPanel : Panel
    {
        public ControlPanel(Game game, PanelSetting setting)
            : base(game, setting)
        {
        }

        public override void ProcessInput(GameTime gameTime, InputState inputState)
        {
        }

        public void SetArt(string enableString, string disableString, int posX, int posY)
        {
            int pos = posX * 4 + posY;
            _Buttons[pos].SetLabel(XNADotaHelper.RemoveBlp(enableString), 0);
            _Buttons[pos].SetLabel(XNADotaHelper.RemoveBlp(disableString), 1);
            _Buttons[pos].Visible = true;
        }

        public void Clear()
        {
            for (int i = 0; i < _Buttons.Length; i++)
                _Buttons[i].Clear();
        }
    }
}
